package org.aaron.demos.model;

import java.util.Arrays;

public class Result {

	private String[] types;
	private String formatted_address;
	private Geometry geometry;

	public String[] getTypes() {
		return types;
	}

	public void setTypes(String[] types) {
		this.types = types;
	}

	public String getFormatted_address() {
		return formatted_address;
	}

	public void setFormatted_address(String formatted_address) {
		this.formatted_address = formatted_address;
	}

	public Geometry getGeometry() {
		return geometry;
	}

	public void setGeometry(Geometry geometry) {
		this.geometry = geometry;
	}

	@Override
	public String toString() {
		return "Result [types=" + Arrays.toString(types) + ", formatted_address=" + formatted_address + "]";
	}

	class Geometry {
		private Location location;

		public Location getLocation() {
			return location;
		}

		public void setLocation(Location location) {
			this.location = location;
		}

		@Override
		public String toString() {
			return "Geometry [location=" + location + "]";
		}

	}

	class Location {
		private String lat;
		private String lng;

		public String getLat() {
			return lat;
		}

		public void setLat(String lat) {
			this.lat = lat;
		}

		public String getLng() {
			return lng;
		}

		public void setLng(String lng) {
			this.lng = lng;
		}

		@Override
		public String toString() {
			return "Location [lat=" + lat + ", lng=" + lng + "]";
		}

	}
}
